package com.hyl.infrastructure.dao;

import com.hyl.infrastructure.dao.po.GroupBuyOrder;
import com.hyl.infrastructure.dao.po.GroupBuyOrderList;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author hyl
 * @description 用户拼单明细
 * @create 2025-07-02 09:32
 */
@Mapper
public interface IGroupBuyOrderListDao {


    void insert(GroupBuyOrderList groupBuyOrderList);


    GroupBuyOrderList queryGroupBuyOrderRecordByOutTradeNo(GroupBuyOrderList groupBuyOrderListReq);


    Integer queryOrderCountByActivityId(GroupBuyOrderList groupBuyOrderListReq);
    //更新orderList订单状态为2完成
    int updateOrderStatus2COMPLETE(GroupBuyOrderList groupBuyOrderListReq);
    //查询拼团交易完成外部单号列表
    List<String> queryGroupBuyCompleteOrderOutTradeNoListByTeamId(String teamId);

    List<GroupBuyOrderList> queryInProgressUserGroupBuyOrderDetailListByUserId(GroupBuyOrderList groupBuyOrderListReq);

    List<GroupBuyOrderList> queryInProgressUserGroupBuyOrderDetailListByRandom(GroupBuyOrderList groupBuyOrderListReq);

    List<GroupBuyOrderList> queryInProgressUserGroupBuyOrderDetailListByActivityId(Long activityId);
}
